package com.finger.gulimall.auth.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class AuthMvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {

        //    @GetMapping("/reg.html")
        //    public String reg(){
        //        return "reg";
        //    }
        registry.addViewController("reg.html").setViewName("reg");
    }
}
